<!DOCTYPE html>
<html lang="en">
<head>
    <include file="Public:header2" />

    <script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Home/js/jquery.cookies.2.2.0.js"></script>
    <script src="__PUBLIC__/Home/js/jquery.copy.js"></script>
    <script src="__PUBLIC__/Home/js/qrcode.js"></script>
    <style type="text/css">
        .texta{
            width:96%;height: 60px;font-size: 14px;padding:5px 2%;font-size: 14px;color:rgba(255,255,255,.3);background: rgba(0,0,0, .5);line-height: 20px;margin-top: 15px;
        }
        .pp{
            font-size:14px;line-height:20px;color:#ff8800;
        }
    </style>
</head>
<body class="blackbg">
    <div id="container" class="logbg">
        <div class="log_title">
            <span class="back"><a href="javascript:history.go(-1)"></a></span>
            {:L('币种充值')} / {$coin_list[$xnb]['name']}
        </div>

        <style type="text/css">
            #codeaa>div{left: 0px!important;top: 0px!important;right: 0px!important;bottom: 0px!important;margin:0 auto!important;background: #fff;}
        </style>

        <div class="logbot">
            <div id="qrcode-wallet" style="display:block;margin:0 auto;margin-top: 15px;" width="100">
            	<eq name="state_coin" value="0">
                	<saon id="codeaa" style="display:block;margin:0 auto;"></saon>
            		<p id="qrcode-t" style="font-size:18px;text-align: center;margin-top:15px;color:#ff0000;">{$coin_info.title}{:L('钱包充币地址')}</p>
            	</eq>
            </div>
            <br/>
            <p class="pp">{:L('这是您的钱包地址，请将您的')} {$coin_info['title']} {:L('转入此地址：')}</p>
            <textarea class="texta" style="height: 20px;" readonly>{$qianbao}</textarea>
            <br/><br/>
            <p class="pp">{:L('转入说明')}</p>

            <textarea class="texta" style="height: 110px;" readonly>1. {:L('转入是自动的')}， {$coin_info['title']} {:L('转账需要整个')} {$coin_info['title']} {:L('网络进行确认，达到')} {$coin_info['zr_dz']} {:L('个确认后您的')} {$coin_info['title']} {:L('会自动充值到您的账户中')}&#10; 2. {:L('此地址是您唯一且独自使用的转入地址，您可以同时进行多次充值，也可将此地址做为您在矿池的付款地址')}
            </textarea>

            <div id="qrcode-wallet" style="display:block;margin:0 auto;margin-top: 15px;" width="100">
                <p id="qrcode-t" style="font-size:18px;text-align: center;margin-top:15px;">
                    <a href="{:U('Finance/myzr_log',array('coin'=>$coin_info['name']))}" style="color:red">{:L('点击查看转入记录')}</a>
                </p>
            </div>

        </div>
    </div>

    <script type="text/javascript" src="__PUBLIC__/Home/js/jquery.qrcode.min.js"></script>

    <script type="text/javascript" >
       $('#codeaa').qrcode({
         render: "table", //table方式
         size:200,
         text: "{$qianbao}" //任意内容
       }); //任意字符串
    </script>

    <script type="text/javascript" src="__PUBLIC__/Home/js/ZeroClipboard.min.js"></script>
    <script>
        var client=new ZeroClipboard(document.getElementById("copy-button"));
        client.on("ready",function(readyEvent){
            client.on("aftercopy",function(event){
                event.target.style.display="none";
            });
        });
        ZeroClipboard.config({swfPath:'__PUBLIC__/Home/js/ZeroClipboard.swf'});
        var clip=new ZeroClipboard(document.getElementById("copy"));
        var _share_title=encodeURI('{:L('邀请好友')}');
        var _share_content=encodeURI("{$C['invit_text_txt']}");
        var _share_url=encodeURIComponent("http://{$_SERVER['HTTP_HOST']}/Login/register.html?invit={$user['id']}");
        var _share_pic='/';
        $(document).ready(function(){
            var clip1=new ZeroClipboard(document.getElementById("copy_button1"));
            var clip2=new ZeroClipboard(document.getElementById("copy_button2"));
            var clip3=new ZeroClipboard(document.getElementById("copy_button3"));
            clip1.on("copy",function(e){
                layer.msg('{:L('复制成功！')}',{icon:1});
            });
            clip2.on("copy",function(e){
                layer.msg('{:L('复制成功！')}',{icon:1});
            });
            clip3.on("copy",function(e){
                layer.msg('{:L('复制成功！')}',{icon:1});
            });
            $(".wlb_tsina").click(function(){
                window.open("http://v.t.sina.com.cn/share/share.php?url="+_share_url+"&title="+_share_content);
            });
            $(".wlb_douban").click(function(){
                window.open("http://www.douban.com/recommend/?url="+_share_url+"&title="+_share_content);
            });
            $(".wlb_qzone").click(function(){
                window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+_share_url+"&title="+_share_title+"&pics="+_share_pic+"&desc="+_share_content);
            });
        });
    </script>
</body>
</html>